#ifndef MAPSTATE_H
#define MAPSTATE_H

#include <string>
#include <SDL/SDL_image.h>
#include "State.h"
#include "Text.h"
#include "Audio.h"
#include "InputManager.h"
#include "Tileset.h"
#include "Tilemap.h"
#include "TimeCounter.h"
#include "Sprite.h"
#include "Aluno.h"
#include "Professor.h"
#include "GameObject.h"

using namespace std;

class MapState: public State{
    public:
        MapState();
        void Load();
        void Unload();
        int Update(int dt);
        void Render(SDL_Surface *screen);

    protected:
        Text *text, *text2;
        Audio *music;
        Tilemap *tilemap;
        SDL_Rect dstrect;
        TimeCounter *counter;
        Aluno *aluno;
        SDL_Surface* hud;
        Professor *professor;
        int x,y, contador;
        char buffer[10], c;
        bool quit;
        bool teste, tempo;
        InputManager *inmanager;

        static const int WIDTH             = 768;
        static const int HEIGHT            = 768;
        static const int TILESIZE          = 48;
        static const int MAPWIDTH          = 16;
        static const int MAPHEIGHT         = 16;
        static const int TILES             = 16;
        static const int SCROLL            = 3;

};

#endif //MAPSTATE_H



